﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020001DB RID: 475
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChallengeStoryInfo : IMessage<ChallengeStoryInfo>, IMessage, IEquatable<ChallengeStoryInfo>, IDeepCloneable<ChallengeStoryInfo>, IBufferMessage
	{
		// Token: 0x17000644 RID: 1604
		// (get) Token: 0x0600157E RID: 5502 RVA: 0x0003D43F File Offset: 0x0003B63F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChallengeStoryInfo> Parser
		{
			get
			{
				return ChallengeStoryInfo._parser;
			}
		}

		// Token: 0x17000645 RID: 1605
		// (get) Token: 0x0600157F RID: 5503 RVA: 0x0003D446 File Offset: 0x0003B646
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChallengeStoryInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000646 RID: 1606
		// (get) Token: 0x06001580 RID: 5504 RVA: 0x0003D458 File Offset: 0x0003B658
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChallengeStoryInfo.Descriptor;
			}
		}

		// Token: 0x06001581 RID: 5505 RVA: 0x0003D45F File Offset: 0x0003B65F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeStoryInfo()
		{
		}

		// Token: 0x06001582 RID: 5506 RVA: 0x0003D468 File Offset: 0x0003B668
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeStoryInfo(ChallengeStoryInfo other) : this()
		{
			this.curStoryBuffs_ = ((other.curStoryBuffs_ != null) ? other.curStoryBuffs_.Clone() : null);
			this.curBossBuffs_ = ((other.curBossBuffs_ != null) ? other.curBossBuffs_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001583 RID: 5507 RVA: 0x0003D4C4 File Offset: 0x0003B6C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeStoryInfo Clone()
		{
			return new ChallengeStoryInfo(this);
		}

		// Token: 0x17000647 RID: 1607
		// (get) Token: 0x06001584 RID: 5508 RVA: 0x0003D4CC File Offset: 0x0003B6CC
		// (set) Token: 0x06001585 RID: 5509 RVA: 0x0003D4D4 File Offset: 0x0003B6D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeStoryBuffList CurStoryBuffs
		{
			get
			{
				return this.curStoryBuffs_;
			}
			set
			{
				this.curStoryBuffs_ = value;
			}
		}

		// Token: 0x17000648 RID: 1608
		// (get) Token: 0x06001586 RID: 5510 RVA: 0x0003D4DD File Offset: 0x0003B6DD
		// (set) Token: 0x06001587 RID: 5511 RVA: 0x0003D4E5 File Offset: 0x0003B6E5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeBossBuffList CurBossBuffs
		{
			get
			{
				return this.curBossBuffs_;
			}
			set
			{
				this.curBossBuffs_ = value;
			}
		}

		// Token: 0x06001588 RID: 5512 RVA: 0x0003D4EE File Offset: 0x0003B6EE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChallengeStoryInfo);
		}

		// Token: 0x06001589 RID: 5513 RVA: 0x0003D4FC File Offset: 0x0003B6FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChallengeStoryInfo other)
		{
			return other != null && (other == this || (object.Equals(this.CurStoryBuffs, other.CurStoryBuffs) && object.Equals(this.CurBossBuffs, other.CurBossBuffs) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600158A RID: 5514 RVA: 0x0003D550 File Offset: 0x0003B750
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.curStoryBuffs_ != null)
			{
				num ^= this.CurStoryBuffs.GetHashCode();
			}
			if (this.curBossBuffs_ != null)
			{
				num ^= this.CurBossBuffs.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600158B RID: 5515 RVA: 0x0003D5A2 File Offset: 0x0003B7A2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600158C RID: 5516 RVA: 0x0003D5AA File Offset: 0x0003B7AA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600158D RID: 5517 RVA: 0x0003D5B4 File Offset: 0x0003B7B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.curStoryBuffs_ != null)
			{
				output.WriteRawTag(42);
				output.WriteMessage(this.CurStoryBuffs);
			}
			if (this.curBossBuffs_ != null)
			{
				output.WriteRawTag(66);
				output.WriteMessage(this.CurBossBuffs);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600158E RID: 5518 RVA: 0x0003D610 File Offset: 0x0003B810
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.curStoryBuffs_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.CurStoryBuffs);
			}
			if (this.curBossBuffs_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.CurBossBuffs);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600158F RID: 5519 RVA: 0x0003D668 File Offset: 0x0003B868
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChallengeStoryInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.curStoryBuffs_ != null)
			{
				if (this.curStoryBuffs_ == null)
				{
					this.CurStoryBuffs = new ChallengeStoryBuffList();
				}
				this.CurStoryBuffs.MergeFrom(other.CurStoryBuffs);
			}
			if (other.curBossBuffs_ != null)
			{
				if (this.curBossBuffs_ == null)
				{
					this.CurBossBuffs = new ChallengeBossBuffList();
				}
				this.CurBossBuffs.MergeFrom(other.CurBossBuffs);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001590 RID: 5520 RVA: 0x0003D6E8 File Offset: 0x0003B8E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001591 RID: 5521 RVA: 0x0003D6F4 File Offset: 0x0003B8F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 42U)
				{
					if (num != 66U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.curBossBuffs_ == null)
						{
							this.CurBossBuffs = new ChallengeBossBuffList();
						}
						input.ReadMessage(this.CurBossBuffs);
					}
				}
				else
				{
					if (this.curStoryBuffs_ == null)
					{
						this.CurStoryBuffs = new ChallengeStoryBuffList();
					}
					input.ReadMessage(this.CurStoryBuffs);
				}
			}
		}

		// Token: 0x040008DD RID: 2269
		private static readonly MessageParser<ChallengeStoryInfo> _parser = new MessageParser<ChallengeStoryInfo>(() => new ChallengeStoryInfo());

		// Token: 0x040008DE RID: 2270
		private UnknownFieldSet _unknownFields;

		// Token: 0x040008DF RID: 2271
		public const int CurStoryBuffsFieldNumber = 5;

		// Token: 0x040008E0 RID: 2272
		private ChallengeStoryBuffList curStoryBuffs_;

		// Token: 0x040008E1 RID: 2273
		public const int CurBossBuffsFieldNumber = 8;

		// Token: 0x040008E2 RID: 2274
		private ChallengeBossBuffList curBossBuffs_;
	}
}
